package com.zzl.microservice.service1.service;

import com.zzl.microservice.service1.api.ConsumerService;
import com.zzl.microservice.service2.api.ProviderService;

/**
 * description: 接口实现类
 * @author 朱正磊
 * @date 2022-07-16 19:41:20
 */
@org.apache.dubbo.config.annotation.Service
public class ConsumerServiceImpl implements ConsumerService {

    @org.apache.dubbo.config.annotation.Reference
    private ProviderService providerService;

    /**
     * description: 重写抽象方法
     * @author 朱正磊
     * @date 2022-07-16 19:49:00
     * @return 返回自定义字符串
     */
    @Override
    public String service() {
        return "Consumer service invoke | " + providerService.service();
    }

}
